/*
 * mqdestroy.cpp
 *
 *  Created on: Oct 28, 2013
 *      Author: m
 */

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include "MyMessage.h"
#include "NewMessageQueue.h"

using namespace ipc;

int main ( int argc, char* argv[] )
{
    char mostrar[10240];
    MyMessage msg;

    MessageQueue<MyMessage>::destroy( "/tmp/mychannel", 'h' );

    sprintf( mostrar,
            "MQDESTROY: "
            "Message Queue destruida.\n" );
    write( fileno(stdout), mostrar, strlen(mostrar) );

    return 0;
}


